
<fieldset>
    <legend>条件搜索</legend>
    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">用户名称</label>
            <div class="layui-input-inline">
                <input name="keyword" value="{$Think.get.keyword|default=''}" placeholder="请输入用户名称" class="layui-input">
            </div>
        </div>
        
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">订单号</label>
            <div class="layui-input-inline">
                <input name="order_id" value="{$Think.get.order_id|default=''}" placeholder="请输入订单号" class="layui-input">
            </div>
        </div>
        
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">提交日期</label>
            <div class="layui-input-inline">
                <input type="date" name="create_time" value="{$Think.get.create_time|default=''}" placeholder="请输入提交日期" class="layui-input">
            </div>
        </div>
        
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-inline">
                <select name="status" id="selectList" >
                    <option value="0" >所有</option>
                    <option value="3">成功</option>
                    <option value="2">失败</option>
                </select>
            </div>
        </div>
        

        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
        </div>
    </form>
</fieldset>

<script>
    var test = "{$Think.get.status|default='0'}";
    $("#selectList").find("option[value="+test+"]").prop("selected",true);
    form.render()
</script>
